package com.cs.study.homework.demo.test;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.util.Scanner;

public class Client {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("192.168.106.110",1234);
        Scanner sc = new Scanner(System.in);
        OutputStream out = socket.getOutputStream();
        String s = sc.nextLine();
        out.write(s.getBytes());
        out.close();

    }
}
